package com.example.whm.model;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class User implements Serializable{
	String id;
    String name;
    String email;
    String passwd;
    String avator;
    
    String phone;
    String tel;
    String address;
    Address add;

	int integral=0;
    int mypay=0;
    
    Map<String, Integer> buy_box=new HashMap<String, Integer>();
    Map<String, Integer> buy_box_preorder=new HashMap<String, Integer>();
    Map<String, List<String>> buy_box_sub=new HashMap<String, List<String>>();
    
    
    
   // List<String> sublist=new ArrayList<String>();
    //List<SubscribeRecord> sub_record_list=new ArrayList<SubscribeRecord>();
    
    
	//List<Address> addresslist=new ArrayList<Address>();
    //List<Order> orders=new ArrayList<Order>();   
   // List<Favorite> favorites=new ArrayList<Favorite>();
    List<String> likes=new ArrayList<String>();
   // List<String> sublist=new ArrayList<String>();
    
	//Map<Integer, Map<String, Object>> subscribes=new HashMap<Integer, Map<String, Object>>();
	Map<String, String> otherinfo=new HashMap<String, String>();
    String createtime=new Date().toLocaleString();
    
    
	
	
    
    
    
    
    
    
    
	public Address getAdd() {
		return add;
	}
	public void setAdd(Address add) {
		this.add = add;
	}
	public Map<String, List<String>> getBuy_box_sub() {
		return buy_box_sub;
	}
	public void setBuy_box_sub(Map<String, List<String>> buy_box_sub) {
		this.buy_box_sub = buy_box_sub;
	}
	/*public String getCity_area() {
		return city_area;
	}
	public void setCity_area(String city_area) {
		this.city_area = city_area;
	}*/
	/*public List<SubscribeRecord> getSub_record_list() {
		return sub_record_list;
	}
	public void setSub_record_list(List<SubscribeRecord> sub_record_list) {
		this.sub_record_list = sub_record_list;
	}*/
	/*public List<String> getSublist() {
		return sublist;
	}
	public void setSublist(List<String> sublist) {
		this.sublist = sublist;
	}*/
	public Map<String, Integer> getBuy_box_preorder() {
		return buy_box_preorder;
	}
	public void setBuy_box_preorder(Map<String, Integer> buy_box_preorder) {
		this.buy_box_preorder = buy_box_preorder;
	}
/*	public Map<Integer, Map<String, Object>> getSubscribes() {
		return subscribes;
	}
	public void setSubscribes(Map<Integer, Map<String, Object>> subscribes) {
		this.subscribes = subscribes;
	}*/
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public Map<String, Integer> getBuy_box() {
		return buy_box;
	}
	public void setBuy_box(Map<String, Integer> buy_box) {
		this.buy_box = buy_box;
	}
    public List<String> getLikes() {
    	return likes;
    }
    public void setLikes(List<String> likes) {
    	this.likes = likes;
    }
    
    
    public String getAvator() {
 		return avator;
 	}
 	public void setAvator(String avator) {
 		this.avator = avator;
 	}
    public Map<String, String> getOtherinfo() {
		return otherinfo;
	}
	public void setOtherinfo(Map<String, String> otherinfo) {
		this.otherinfo = otherinfo;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}


    public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	/*public List<Address> getAddresslist() {
		return addresslist;
	}
	public void setAddresslist(List<Address> addresslist) {
		this.addresslist = addresslist;
	}*/
	public String getEmail() {
 		return email;
 	}
 	public void setEmail(String email) {
 		this.email = email;
 	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public int getIntegral() {
		return integral;
	}
	public void setIntegral(int integral) {
		this.integral = integral;
	}
	public int getMypay() {
		return mypay;
	}
	public void setMypay(int mypay) {
		this.mypay = mypay;
	}
	
	
	/*public List<Order> getOrders() {
		return orders;
	}
	public void setOrders(List<Order> orders) {
		this.orders = orders;
	}*/
	/*public List<Favorite> getFavorites() {
		return favorites;
	}
	public void setFavorites(List<Favorite> favorites) {
		this.favorites = favorites;
	}*/
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
    
}
